package com.dj.ms.configure;

import com.dj.ms.support.mq.MqProperties;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;

/**
 * <br>
 * <p>
 * -
 * </p>
 *
 * <br>
 *
 * @author ZJG
 * @version 1.0
 * @date 2021/10/28 上午9:09
 */
@Order(Ordered.HIGHEST_PRECEDENCE)
@Configuration
public class MQPropertiesAutoConfiguration {

    @Bean
    @ConditionalOnMissingBean(MqProperties.class)
    public MqProperties rocketMqProperties() {
        return new MqProperties();
    }

}
